<template>
	<view class="content">
		<view class="main">
			<navbars :navigationMsg="navigationMsg"></navbars>
			<!-- 签到页面 -->
			<view class="sing_top">
				<view class="sing_top_listone">
					<view class="jb_listop">
						<p>我的金币 > </p>
					</view>
					<view class="jb_lisbtm">
						<image class="left" src="/static/金币.png" mode=""></image>
						<view class="right">
							109
						</view>
					</view>
				</view>
				<view class="sing_top_listtwo">
					<view class="top">
						<p>每日签到</p>
					</view>
					<view class="center">
						<view class="center_list" v-for="(item,index) in data" :key="index">
							<p>{{item.list}}</p>
							<image class="jinx" src="/static/金币.png" mode=""></image>
							<p>{{item.prices}}</p>
						</view>
					</view>
					<view class="sing_top_listthree">
						<u-button class="btn" @click="signs" text="点击签到"></u-button>
					</view>
				</view>
				<view class="postion_img">
					<image style="width: 100%;height: 100%;" src="/static/组 300@3x.png" mode=""></image>
				</view>
			</view>
			<view class="btms">
				<view class="ps_list">
					为你推荐
				</view>
				<view class="ipone_list">
					<lists></lists>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		User_sign
	} from "../../../api/api.js"
	import lists from "../../../common/my/phone-list/phone-list.vue"
	import navbars from "../../../common/navgats/navgats.vue"
	export default {
		data() {
			return {
				navigationMsg:{
					title:"签到",
					bgColor:"#FEF6D3"
				},
				data:[
					{
						list:"第一天",
						prices:"20金币"
					},
					{
						list:"第二天",
						prices:"20金币"
					},
					{
						list:"第三天",
						prices:"20金币"
					},
					{
						list:"第四天",
						prices:"20金币"
					},
					{
						list:"第五天",
						prices:"20金币"
					},
					{
						list:"第六天",
						prices:"20金币"
					},
					{
						list:"第七天",
						prices:"20金币"
					},
					{
						list:"第八天",
						prices:"20金币"
					}
				],
				
			}
		},
		components:{
			navbars,
			lists
		},
		methods: {
			async signs(){
				let res=await User_sign()
				console.log(res)
				uni.showToast({
					title: res.data.msg,
					icon: 'none',
					duration: 2000
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.content {
		width: 100vw;
		height: 100vh;
		/* position: absolute; */
		// background-color: #F6F6F6;
		// display: flex;
		// flex-direction: column;
		// align-items: center;
		overflow-y: auto;
		background: #f9f9f9;
	}

	.main {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;

	}
	.sing_top{
		width: 100%;
		height: 50vh;
		
		background: linear-gradient(#FEF6D3 , #F9F9F9);
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.sing_top_listone{
		
		width: 90%;
		height: 200rpx;
		// border-radius: 20rpx;
		// overflow: hidden;
		// line-height: 100rpx;
	}
	.jb_listop{
		width: 50%;
		height: 70rpx;
		line-height: 70rpx;
	}
	.jb_lisbtm{
		width: 50%;
		height: 130rpx;
		display: flex;
		.left{
			width: 50rpx;
			height: 50rpx;
			margin-top: 42rpx;
		}
		.right{
			line-height: 130rpx;
			font-size: 55rpx;
			font-weight: bold;
			margin-left: 20rpx;
		}
	}
	.sing_top_listtwo{
		width: 90%;
		height: 700rpx;
		background-color: #ffffff;
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		.top{
			width: 90%;
			height: 100rpx;
			line-height: 100rpx;
			font-size: 40rpx;
		}
		.center{
			width: 90%;
			height: 400rpx;
			display: flex;
			flex-wrap: wrap;
			.center_list{
				width: 140rpx;
				height: 170rpx;
				border-radius: 20rpx;
				margin-left: 10rpx;
				margin-top: 10rpx;
				background-color: #F6F6F6;
				text-align: center;
				font-size: 30rpx;
				line-height: 50rpx;
				overflow: hidden;
				.jinx{
					width: 50rpx;
					height: 50rpx;
				}
			}
		}
	}
	.sing_top_listthree{
		width: 90%;
		height: 100rpx;
		.btn{
			width: 100%;
			height: 80rpx;
			border-radius: 50rpx;
			background: #FCD748;
			border: none;
		}
	}
	.postion_img{
		position: absolute;
		width: 450rpx;
		height: 400rpx;
		right: 0;
		top: -40rpx;
		z-index: 1;
	}
	.btms{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		.ps_list{
			width: 100%;
			text-align: center;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 35rpx;
		}
		.ipone_list{
			width: 90%;
			
		}
	}
</style>
